class clsA(str):
    def __init__(self, a):
        self.val = a

    def getVal(self):
        return self.val

aaa = clsA(10)
for k,v in str.__dict__.items():
    print k,v
print aaa.__getattr__('val')
        
